package com.example;

public class WeatherData {
    private String location;
    private double temperature;
    private double feelsLike;
    private int humidity;
    private double windSpeed;
    private String description;
    private String iconUrl;
    
    public WeatherData(String location, double temperature, double feelsLike, 
                      int humidity, double windSpeed, String description, String iconCode) {
        this.location = location;
        this.temperature = temperature;
        this.feelsLike = feelsLike;
        this.humidity = humidity;
        this.windSpeed = windSpeed;
        this.description = description;
        this.iconUrl = "https://openweathermap.org/img/wn/" + iconCode + "@2x.png";
    }
    
    // Getters
    public String getLocation() { return location; }
    public double getTemperature() { return temperature; }
    public double getFeelsLike() { return feelsLike; }
    public int getHumidity() { return humidity; }
    public double getWindSpeed() { return windSpeed; }
    public String getDescription() { return description; }
    public String getIconUrl() { return iconUrl; }
}